package com.jeeplus.modules.guide.utils;
/**
 * 微信配置
 * @author azj
 * @version 2020-05-12
 */
public class WeiXinConfig {
    // 全局jsapi_ticket
    public static JsapiTicket jsapiTicket;
    // 获取access_token的接口地址（GET） 限30（次/天）
    public static final String access_token_url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    // 获取网页授权access_token
    //public static final String web_access_token_url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    public static final String jsapi_ticket_url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";
    // 获取微信用户信息
    public static final String weixin_user_info = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    //获取授权 得到code
    //scope=snsapi_base 无需授权
    //scope=snsapi_userinfo 手动授权 获取用户基本信息
    //snsapi_base （不弹出授权页面，直接跳转，只能获取用户openid），
    //snsapi_userinfo （弹出授权页面，可通过openid拿到昵称、性别、所在地。并且， 即使在未关注的情况下，只要用户授权，也能获取其信息 ）
    public static final String getCodeUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&response_type=code&scope=snsapi_userinfo&state=1&redirect_uri=$redirect_uri#wechat_redirect";
    //通过code 获取用户openid
    public static final String getOpenId = "https://api.weixin.qq.com/sns/oauth2/access_token";
    public static final String openIdParam = "appid=AppId&secret=AppSecret&code=CODE&grant_type=authorization_code";
    //推送用户数据
    public static final String sendMessage = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";
    //微信 叫号提醒 模板id
    public static final String queueId = "AV3-CY4AQVcYDzQwnf7lRdu7Gs2yB1139oc9rAIW3MI";
    //微信 排队提醒 模板id
    public static final String lineId = "1mUt1oRGMcfuhxGs8tMW2iaAVMcXA8wYE11oNa9vKjg";
    //微信 取号成功提醒 模板id
    public static final String successQueueId = "ms3UYM5QUQOn5UIuSbaHFvWWiZjzRzU00oBPUhNTiIs";
    //预约成功提醒
    public static final String successId = "ceRGhJns1KcJ6v8VoGAaOACExrruIOdaQ496LwuXUJI";
    //评价提醒
    public static final String pjId = "Ix_Kr3CL6-iwkdM6oDVJ8s6BIwfY8QMo9oeGeKnlfiU";
    //微信 综窗业务提醒 模板id
    public static final String zcId = "Lxce5b2cnlRxhGnM504Wclinko4To9VJC--EeMMFrYE";
    //差评价提醒
    public static final String diffId = "Rs_7ctZmXw1UgB9z9sX1fcrao8dOf25T84lTTPjwSL0";
    //微信 是否已推送模板消息 从微信模板消息进入 0是
    public static final String isSend = "0";

}
